const app = getApp();
Page({
  data: {
    globalData:app.globalData,
    dateArr: [{
      value: '2018-11-17 10:19#20:21'
    }, {
      value: '2018-11-18 11:29#19:11'
    }, {
      value: '2018-11-19 12:09#21:41'
    }, {
      value: '2018-11-20 09:08#22:20'
    }],
    startDate: [],
    endDate: []

  },
  onLoad: function(e) {
    var that = this;
    this.data.dateArr = app.globalData.meetingDate;
    that.setData({
      globalData: app.globalData
    })
  },
  // 回调
  bindStartMultiPickerChange(time) {
    var that = this;
    console.log('bindStartMultiPickerChange 回调', time);

    if (time.currentTarget.dataset.lx == 'start') {
      console.log('start')
    this.setData({
      startDate: time.detail[0]
    })
    } else {
      console.log('end')
      this.setData({
        endDate: time.detail[0]
      })
    }
    console.log('Times', this.data.startDate, time.detail[0])
  }
})